home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-10-13 | 2.7 KB | 91 lines | [TEXT/MPS ] |
- # Apple Macintosh Developer Technical Support
- #
- # Makefile: Build Rules for RAMDisk sample code
- #
- # by Gordon Sheridan and Jim Luther
- # modified by Brian Bechtel
- #
- # File: Makefile
- #
- # Copyright © 1992-1994 Apple Computer, Inc.
- # All rights reserved.
- #
- # You may incorporate this sample code into your applications without
- # restriction, though the sample code has been provided "AS IS" and the
- # responsibility for its operation is 100% yours. However, what you are
- # not permitted to do is to redistribute the source as "DTS Sample Code"
- # after having made changes. If you're going to re-distribute the source,
- # we require that you make it clear in the source that the code was
- # descended from Apple Sample Code, but that you've made changes.
- #
- # Change History (most recent first):
- #
- # <2> 6/28/93 gs Add StdCLib.o to RamINIT, for AddDebuggerLabels.
- # <1> 6/13/93 gs Link RamINIT with StdCLib for string routines to add label in
- # TMON. Reorg to use :Objects: directory.
- #
-
- CDevName = RAMDisk
- ObjDir = :Objects:
- SrcDir = :Sources:
- COptions = -r -b2 -d __DebugVersion
-
- {ObjDir} ƒ {SrcDir}
-
- {CDevName} ƒ {ObjDir}RamCDev ∂
- {ObjDir}RamDRVR ∂
- {ObjDir}RamINIT
- Begin
- echo include ∂"{ObjDir}RamCDev∂"∂;
- echo include ∂"{ObjDir}RamDRVR∂" ∂'DRVR∂'∂;
- echo include ∂"{ObjDir}RamINIT∂" ∂'INIT∂'∂;
- End | Rez -o {Targ}
- SetFile {Targ} -t cdev -c RDsk -a B
- # Duplicate -y {Targ} "{SystemFolder}Control Panels:{Targ}"
-
-
- ############################## RamCDev Build Rules ##############################
-
- {ObjDir}RamCDev ƒ {ObjDir}RamCDev.rsrc ∂
- {ObjDir}RamCDev.c.o
- Duplicate -y {ObjDir}RamCDev.rsrc {Targ}
- Link -t rsrc -c RSED -rt cdev=-4064 -m MAIN -sg RamCDev -rn ∂
- {ObjDir}RamCDev.c.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- -o {Targ}
-
- {ObjDir}RamCDev.c.o ƒ {SrcDir}RamCDev.c RamCDev.h RamDisk.h
-
- {ObjDir}RamCDev.rsrc ƒ RamCDev.r RamDisk.h
- Rez -i {SrcDir} -t rsrc -c RSED -o {Targ} RamCDev.r
-
-
- ############################## RamINIT Build Rules ##############################
-
- {ObjDir}RamINIT ƒ {ObjDir}RamINIT.c.o {ObjDir}ShowIcon7.c.o
- link -rt INIT=0 -ra =16 -m main -rn -sg MergeEverything ∂
- -t rsrc -c RSED ∂
- {ObjDir}RamINIT.c.o ∂
- {ObjDir}ShowIcon7.c.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- -o {Targ}
-
-
- {ObjDir}RamINIT.c.o ƒ RamDisk.h
-
-
- ############################## RamDRVR Build Rules ##############################
-
-
- {ObjDir}RamDRVR ƒ {ObjDir}RamDRVR.c.o {ObjDir}Driver.a.o
- Link -t rsrc -c RSED -rt DRVR=48 -ra =resSysHeap,resLocked -sg .RamDRVR ∂
- {ObjDir}Driver.a.o ∂
- {ObjDir}RamDRVR.c.o ∂
- # "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- -o {Targ}
-
- {ObjDir}RamDRVR.c.o ƒ RamDisk.h
-